package com.animal.service.impl;

import com.animal.entity.pojo.AAdopt;
import com.animal.mapper.AdoptMapper;
import com.animal.service.AdoptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdoptServiceImpl implements AdoptService {
    @Resource
    private AdoptMapper adoptMapper;


    @Override
    public AAdopt getAAdopAllByPetId(Integer petId) {
        return adoptMapper.getAAdopAllByPetId(petId);
    }

    @Override
    public List<AAdopt> getAAdopAll() {
        return adoptMapper.getAAdopAll();
    }

    @Override
    public AAdopt getAAdopAllByUserId(Integer UserId) {
        return adoptMapper.getAAdopAllByUserId(UserId);
    }
}
